<text>Four-byte ΓÇ£OSTypeΓÇ¥ codes are used heavily through the Macintosh system. Usually they consist of four printable characters, but this is not guaranteed. For this reason these externals support OSType values in two forms: either as a string of up to four literal characters (blank-padded at the end if fewer than four), or as a string of exactly eight hexadecimal digits. Values may be returned in either form, as four literal characters where possible, otherwise as eight hex digits.</text>
</content>
<name></name>
<script></script>
</card>
card_5417.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>sets the current file position, where RefNum is the file refnum, PosMode has one of the following values: 0 fsAtMark 1 fsFromStart 2 fsFromLEOF 3 fsFromMarkand PosOffset is the new offset value (ignored for fsAtMark, unsigned for fsFromStart, signed for fsFromLEOF and fsFromMark).</text>
</content>
<content>
<layer>background</layer>
<id>7</id>
<highlight> <true /> </highlight>
</content>
<content>
<layer>background</layer>
<id>10</id>
<text>2799607092</text>
</content>
<content>
<layer>background</layer>
<id>2</id>
<text>RefNum, PosMode, PosOffset</text>
</content>
<content>
<layer>background</layer>
<id>12</id>
<highlight> <true /> </highlight>
</content>
<name></name>
<script></script>
</card>
card_6014.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text><span class="style1">hanges catalog information for a file or directory, where VRefNum, DirID and FileName identify the file or directory to change the info for, and TheInfo is a 27-line string containing the info to change.Not all the lines in TheInfo are significant. The layout of TheInfo exactly matches the information returned by </span><span class="style2">GetCatInfo</span><span class="style1">; the intention is that you retrieve the information with GetCatInfo, change the appropriate lines, and then call SetCatInfo to effect the changes. Line 3, which contains the attribute flags, is used to indicate whether the object is a file or directory (which affects the interpretation of some of the remaining lines). The following lines of TheInfo contain information which can be changed: 5) the file type as an </span><span class="style2">OSType</span><span class="style1"> (if itΓÇÖs a file) 5) the folder window rectangle (if itΓÇÖs a directory) 6) the file creator as an </span><span class="style2">OSType</span><span class="style1"> (if itΓÇÖs a file) 7) the Finder flags, as an unsigned integer 8) the location within the parent window, as a point 9) the parent folder ID (if itΓÇÖs a file, only meaningful on MFS volumes) 9) the folder view (if itΓÇÖs a directory) 17) the creation date, in standard HyperTalk ΓÇ£secondsΓÇ¥ format 18) the modification date, in standard HyperTalk ΓÇ£secondsΓÇ¥ format 19) the backup date, in standard HyperTalk ΓÇ£secondsΓÇ¥ format 20) the integer icon ID (if itΓÇÖs a file) 20) the folder window scroll position, as a point (if itΓÇÖs a directory) 21) the parent directory ID in the open chain (if itΓÇÖs a directory) 22) the integer name script code 23) extra flags, as an unsigned integer 24) the integer comment ID 25) the integer ID of the parent directory to return it to if itΓÇÖs put away.Apart from line 3, the other lines are ignored.</span></text>
<text>resolves an alias, where FromFile is an optional filename string to indicate the starting point for a relative search, Alias is the handle to the alias to be resolved, and ReturnWasChanged is a boolean, true to return an indication as to whether the alias information has changed (default is false).On success, the function result will contain one or two lines (depending on ReturnWasChanged); the first line will contain the full name of the object the alias points to, and the second line (if present) will contain a boolean, true if the alias information has changed, false if not.</text>
<text>checks for the presence of some form of the Alias Manager.The function result is a boolean, true if the AliasDispatch trap is defined. This need not indicate the presence of the full System 7 Alias Manager; it might only be the partial implementation provided by QuickTime under System 6.0.7.</text>
</content>
<content>
<layer>background</layer>
<id>1</id>
<text>PartialAliasesPresent</text>
</content>
<content>
<layer>background</layer>
<id>2</id>
<text>()</text>
</content>
<name></name>
<script></script>
</card>
card_6816.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>creates a minimal alias from a full pathname string, where Target is the file/folder/volume to be aliased (doesn’t actually have to exist or be reachable on a mounted volume while the alias is being created) specified as a pathname string, and ZoneName and ServerName are the optional zone and server names for a network volume.On success, the function result is the alias handle.</text>
</content>
<content>
<layer>background</layer>
<id>6</id>
<highlight> <true /> </highlight>
</content>
<content>
<layer>background</layer>
<id>10</id>
<text>2799607529</text>
</content>
<content>
<layer>background</layer>
<id>12</id>
<highlight> <true /> </highlight>
</content>
<content>
<layer>background</layer>
<id>2</id>
<text>(Target, [ZoneName], [ServerName])</text>
</content>
<name></name>
<script></script>
</card>
card_6400.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>createa a minimal alias, where Target is the file/folder/volume to be aliased, specified as a pathname string.On success, the function result is the alias handle.</text>
</content>
<content>
<layer>background</layer>
<id>6</id>
<highlight> <true /> </highlight>
</content>
<content>
<layer>background</layer>
<id>10</id>
<text>2806776528</text>
</content>
<content>
<layer>background</layer>
<id>12</id>
<highlight> <true /> </highlight>
</content>
<content>
<layer>background</layer>
<id>2</id>
<text>(Target)</text>
</content>
<name></name>
<script></script>
</card>
card_6393.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>creates an alias, where FromFile is the optional starting point for future searches, and Target is the file/folder/volume to be aliased, both specified as pathname strings.On success, the function result is the alias handle.</text>
</content>
<content>
<layer>background</layer>
<id>6</id>
<highlight> <true /> </highlight>
</content>
<content>
<layer>background</layer>
<id>10</id>
<text>2799607405</text>
</content>
<content>
<layer>background</layer>
<id>2</id>
<text>([FromFile], Target)</text>
</content>
<content>
<layer>background</layer>
<id>12</id>
<highlight> <true /> </highlight>
</content>
<name></name>
<script></script>
</card>
card_5351.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>gets the current file position, where RefNum is the refnum of the open file.On success, the function result is the unsigned integer position.</text>
</content>
<content>
<layer>background</layer>
<id>6</id>
<highlight> <true /> </highlight>
</content>
<content>
<layer>background</layer>
<id>10</id>
<text>2799607021</text>
</content>
<content>
<layer>background</layer>
<id>2</id>
<text>(RefNum)</text>
</content>
<content>
<layer>background</layer>
<id>12</id>
<highlight> <true /> </highlight>
</content>
<name></name>
<script></script>
</card>
card_5756.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>gets the current end of file, where RefNum is the refnum of the open file.On success, the function result is the unsigned integer end-of-file position.</text>
</content>
<content>
<layer>background</layer>
<id>6</id>
<highlight> <true /> </highlight>
</content>
<content>
<layer>background</layer>
<id>10</id>
<text>2799607223</text>
</content>
<content>
<layer>background</layer>
<id>12</id>
<highlight> <true /> </highlight>
</content>
<content>
<layer>background</layer>
<id>2</id>
<text>(RefNum)</text>
</content>
<name></name>
<script></script>
</card>
card_9211.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text><span class="style1">eturns the catalog information for a file or directory, where VRefNum specifies the volume, DirID the parent directory, and FileName the name of the file or directory on which to do the lookup, and DirIndex specifies the lookup index. If VRefNum or DirID are 0 or omitted, the corresponding parameters (if needed) are taken from the pathname of the current resource file (ie the current stack). The meanings of the arguments follow the description in IM4: VRefNum DirID FileName DirIndex optional optional relative 0/omitted FileName is interpreted relative to the specified volume and directory. Information returned is about that file/directory. (ignored) (ignored) absolute 0/omitted Information returned is about the file/directory named by FileName. optional optional (ignored) positive Information returned is about the item with index DirIndex in the directory specified by VRefNum and DirID. optional optional (ignored) negative Information returned is about the directory specified by VRefNum and DirID. On success, the result will contain 27 lines: 1) the name of the file/directory, as an expression (use “the value of” on this line to get the actual name; this prevents funny characters in the name from confusing the parsing of the function result) 2) the file refnum as a signed integer, if it is currently open 3) the attribute byte as an unsigned integer (bit 4 indicates whether this is a file or a directory) 4) the directory access rights, as an unsigned integer (if it’s a directory on a shared volume) 5) the file type as an </span><span class="style2">OSType</span><span class="style1"> (if it’s a file) 5) the folder window rectangle (if it’s a directory) 6) the file creator as an </span><span class="style2">OSType</span><span class="style1"> (if it’s a file) 6) an empty line (if it’s a directory) 7) the Finder flags, as an unsigned integer 8) the location within the parent window, as a point 9) the parent folder ID (if it’s a file, only meaningful on MFS volumes) 9) the folder view (if it’s a directory) 10) the ID of the file/folder 11) the starting block on disk of the data fork (if it’s a file) 11) the number of files (if it’s a directory) 12) the logical length in bytes of the data fork (if it’s a file) 13) the physical length in bytes of the data fork (if it’s a file) 14) the starting block on disk of the resource fork (if it’s a file) 15) the logical length in bytes of the resource fork (if it’s a file) 16) the physical length in bytes of the resource fork (if it’s a file) 17) the creation date, in standard HyperTalk “seconds” format 18) the modification date, in standard HyperTalk “seconds” format 19) the backup date, in standard HyperTalk “seconds” format 20) the integer icon ID (if it’s a file) 20) the folder window scroll position, as a point (if it’s a directory) 21) an empty line (if it’s a file) 21) the parent directory ID in the open chain (if it’s a directory) 22) the integer name script code 23) extra flags, as an unsigned integer 24) the integer comment ID 25) the integer ID of the parent directory to return it to if it’s put away 26) its integer parent directory ID 27) the integer allocation clump size (if it’s a file).</span></text>
</content>
<name></name>
<script></script>
</card>
card_7006.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>returns information about an alias, where TheAlias is the alias handle to get information about, and Index specifies the information to get (the valid values are described in Inside Mac Vol VI, page 27-19).On success, the function result is the information string (possibly empty).</text>
</content>
<content>
<layer>background</layer>
<id>6</id>
<highlight> <true /> </highlight>
</content>
<content>
<layer>background</layer>
<id>10</id>
<text>2799607582</text>
</content>
<content>
<layer>background</layer>
<id>2</id>
<text>(TheAlias, Index)</text>
</content>
<content>
<layer>background</layer>
<id>12</id>
<highlight> <true /> </highlight>
</content>
<name></name>
<script></script>
</card>
card_7738.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>returns a full filename from a refnum, where TheRefNum is the name of a currently open file.The function result is the full pathname of the file.</text>
</content>
<name></name>
<script></script>
</card>
card_4891.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>opens a file for I/O, where FileName is the name of the file to open, Permission has one of the following values: 0 fsCurPerm (default) 1 fsRdPerm 2 fsWrPerm 3 fsRdWrPerm 4 fsRdWrShPermand ResourceFork is true to open the resource fork, false to open the data fork (default is false).On success, the function result is the file refnum.</text>
<text>exchanges the catalog information for two files (see the File Manager chapter of IM6 for details), where FileName1 and FileName2 are the names of the two files to be exchanged. They must reside on the same volume.</text>
</content>
<content>
<layer>background</layer>
<id>10</id>
<text>2802219798</text>
</content>
<content>
<layer>background</layer>
<id>1</id>
<text>FSExchangeFiles</text>
</content>
<content>
<layer>background</layer>
<id>2</id>
<text>FileName1, FileName2</text>
</content>
<content>
<layer>background</layer>
<id>7</id>
<highlight> <true /> </highlight>
</content>
<content>
<layer>background</layer>
<id>12</id>
<highlight> <true /> </highlight>
</content>
<name></name>
<script></script>
</card>
card_2096.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text><span class="style1">reates a file, where FileName is the name of the file, and Creator and FileType are the </span><span class="style2">OSType</span><span class="style1"> creator and type codes to assign to the new file.</span></text>
</content>
<content>
<layer>background</layer>
<id>10</id>
<text>2799606645</text>
</content>
<content>
<layer>background</layer>
<id>2</id>
<text>FileName, Creator, FileType</text>
</content>
<name></name>
<script></script>
</card>
card_4325.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>moves a file to a different directory, where TheFile specifies the file to move, and NewDir specifies the new directory (which must reside on the same volume).</text>
</content>
<content>
<layer>background</layer>
<id>7</id>
<highlight> <true /> </highlight>
</content>
<name></name>
<script></script>
</card>
card_9237.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>expands a file specification, where VRefNum specifies the volume, DirID the parent directory, FileName the name of the file/directory, and MustExist is false if the object doesnΓÇÖt actually have to exist (default is true). If VRefNum or DirID are omitted, default values are taken from the pathname of the current resource file (ie the current stack). If FileName is a relative pathname, it is interpreted relative to the specified volume and directory.On success, the function result is the fully expanded absolute pathname of the specified file/folder.</text>
</content>
<name></name>
<script></script>
</card>
card_7260.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>extracts a pathname string from an alias, where TheAlias is the alias handle.The function result is the pathname string, constructed from information returned by GetAliasInfo, not by resolving the alias. Note that the result will not be correct for a minimal alias; specifically, you only seem to get the file name and volume name—folder names are missing. It will also not be correct for a volume alias. Unfortunately there is no documented way to distinguish an alias for a file from that for a folder or volume!</text>